﻿using System;
using System.CodeDom.Compiler;
using System.Diagnostics;
using Google.Protobuf;
using Google.Protobuf.Collections;
using Google.Protobuf.Reflection;

namespace EggLink.DanhengServer.Proto
{
	// Token: 0x02000CFB RID: 3323
	[DebuggerDisplay("{ToString(),nq}")]
	public sealed class PlayCardBrief : IMessage<PlayCardBrief>, IMessage, IEquatable<PlayCardBrief>, IDeepCloneable<PlayCardBrief>, IBufferMessage
	{
		// Token: 0x170029D5 RID: 10709
		// (get) Token: 0x06009473 RID: 38003 RVA: 0x0018A4CB File Offset: 0x001886CB
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public static MessageParser<PlayCardBrief> Parser
		{
			get
			{
				return PlayCardBrief._parser;
			}
		}

		// Token: 0x170029D6 RID: 10710
		// (get) Token: 0x06009474 RID: 38004 RVA: 0x0018A4D2 File Offset: 0x001886D2
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public static MessageDescriptor Descriptor
		{
			get
			{
				return PlayCardBriefReflection.Descriptor.MessageTypes[0];
			}
		}

		// Token: 0x170029D7 RID: 10711
		// (get) Token: 0x06009475 RID: 38005 RVA: 0x0018A4E4 File Offset: 0x001886E4
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		MessageDescriptor IMessage.Descriptor
		{
			get
			{
				return PlayCardBrief.Descriptor;
			}
		}

		// Token: 0x06009476 RID: 38006 RVA: 0x0018A4EB File Offset: 0x001886EB
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public PlayCardBrief()
		{
		}

		// Token: 0x06009477 RID: 38007 RVA: 0x0018A500 File Offset: 0x00188700
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public PlayCardBrief(PlayCardBrief other) : this()
		{
			this.baseValue_ = other.baseValue_;
			this.uniqueId_ = other.uniqueId_;
			this.skillBriefList_ = other.skillBriefList_.Clone();
			this._unknownFields = UnknownFieldSet.Clone(other._unknownFields);
		}

		// Token: 0x06009478 RID: 38008 RVA: 0x0018A54D File Offset: 0x0018874D
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public PlayCardBrief Clone()
		{
			return new PlayCardBrief(this);
		}

		// Token: 0x170029D8 RID: 10712
		// (get) Token: 0x06009479 RID: 38009 RVA: 0x0018A555 File Offset: 0x00188755
		// (set) Token: 0x0600947A RID: 38010 RVA: 0x0018A55D File Offset: 0x0018875D
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public uint BaseValue
		{
			get
			{
				return this.baseValue_;
			}
			set
			{
				this.baseValue_ = value;
			}
		}

		// Token: 0x170029D9 RID: 10713
		// (get) Token: 0x0600947B RID: 38011 RVA: 0x0018A566 File Offset: 0x00188766
		// (set) Token: 0x0600947C RID: 38012 RVA: 0x0018A56E File Offset: 0x0018876E
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public uint UniqueId
		{
			get
			{
				return this.uniqueId_;
			}
			set
			{
				this.uniqueId_ = value;
			}
		}

		// Token: 0x170029DA RID: 10714
		// (get) Token: 0x0600947D RID: 38013 RVA: 0x0018A577 File Offset: 0x00188777
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public RepeatedField<PlaySkillBrief> SkillBriefList
		{
			get
			{
				return this.skillBriefList_;
			}
		}

		// Token: 0x0600947E RID: 38014 RVA: 0x0018A57F File Offset: 0x0018877F
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public override bool Equals(object other)
		{
			return this.Equals(other as PlayCardBrief);
		}

		// Token: 0x0600947F RID: 38015 RVA: 0x0018A590 File Offset: 0x00188790
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public bool Equals(PlayCardBrief other)
		{
			return other != null && (other == this || (this.BaseValue == other.BaseValue && this.UniqueId == other.UniqueId && this.skillBriefList_.Equals(other.skillBriefList_) && object.Equals(this._unknownFields, other._unknownFields)));
		}

		// Token: 0x06009480 RID: 38016 RVA: 0x0018A5F0 File Offset: 0x001887F0
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public override int GetHashCode()
		{
			int num = 1;
			if (this.BaseValue != 0U)
			{
				num ^= this.BaseValue.GetHashCode();
			}
			if (this.UniqueId != 0U)
			{
				num ^= this.UniqueId.GetHashCode();
			}
			num ^= this.skillBriefList_.GetHashCode();
			if (this._unknownFields != null)
			{
				num ^= this._unknownFields.GetHashCode();
			}
			return num;
		}

		// Token: 0x06009481 RID: 38017 RVA: 0x0018A656 File Offset: 0x00188856
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public override string ToString()
		{
			return JsonFormatter.ToDiagnosticString(this);
		}

		// Token: 0x06009482 RID: 38018 RVA: 0x0018A65E File Offset: 0x0018885E
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public void WriteTo(CodedOutputStream output)
		{
			output.WriteRawMessage(this);
		}

		// Token: 0x06009483 RID: 38019 RVA: 0x0018A668 File Offset: 0x00188868
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		void IBufferMessage.InternalWriteTo(ref WriteContext output)
		{
			if (this.BaseValue != 0U)
			{
				output.WriteRawTag(48);
				output.WriteUInt32(this.BaseValue);
			}
			this.skillBriefList_.WriteTo(ref output, PlayCardBrief._repeated_skillBriefList_codec);
			if (this.UniqueId != 0U)
			{
				output.WriteRawTag(80);
				output.WriteUInt32(this.UniqueId);
			}
			if (this._unknownFields != null)
			{
				this._unknownFields.WriteTo(ref output);
			}
		}

		// Token: 0x06009484 RID: 38020 RVA: 0x0018A6D4 File Offset: 0x001888D4
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public int CalculateSize()
		{
			int num = 0;
			if (this.BaseValue != 0U)
			{
				num += 1 + CodedOutputStream.ComputeUInt32Size(this.BaseValue);
			}
			if (this.UniqueId != 0U)
			{
				num += 1 + CodedOutputStream.ComputeUInt32Size(this.UniqueId);
			}
			num += this.skillBriefList_.CalculateSize(PlayCardBrief._repeated_skillBriefList_codec);
			if (this._unknownFields != null)
			{
				num += this._unknownFields.CalculateSize();
			}
			return num;
		}

		// Token: 0x06009485 RID: 38021 RVA: 0x0018A740 File Offset: 0x00188940
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public void MergeFrom(PlayCardBrief other)
		{
			if (other == null)
			{
				return;
			}
			if (other.BaseValue != 0U)
			{
				this.BaseValue = other.BaseValue;
			}
			if (other.UniqueId != 0U)
			{
				this.UniqueId = other.UniqueId;
			}
			this.skillBriefList_.Add(other.skillBriefList_);
			this._unknownFields = UnknownFieldSet.MergeFrom(this._unknownFields, other._unknownFields);
		}

		// Token: 0x06009486 RID: 38022 RVA: 0x0018A7A1 File Offset: 0x001889A1
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public void MergeFrom(CodedInputStream input)
		{
			input.ReadRawMessage(this);
		}

		// Token: 0x06009487 RID: 38023 RVA: 0x0018A7AC File Offset: 0x001889AC
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		void IBufferMessage.InternalMergeFrom(ref ParseContext input)
		{
			uint num;
			while ((num = input.ReadTag()) != 0U)
			{
				if (num != 48U)
				{
					if (num != 58U)
					{
						if (num != 80U)
						{
							this._unknownFields = UnknownFieldSet.MergeFieldFrom(this._unknownFields, ref input);
						}
						else
						{
							this.UniqueId = input.ReadUInt32();
						}
					}
					else
					{
						this.skillBriefList_.AddEntriesFrom(ref input, PlayCardBrief._repeated_skillBriefList_codec);
					}
				}
				else
				{
					this.BaseValue = input.ReadUInt32();
				}
			}
		}

		// Token: 0x040038B8 RID: 14520
		private static readonly MessageParser<PlayCardBrief> _parser = new MessageParser<PlayCardBrief>(() => new PlayCardBrief());

		// Token: 0x040038B9 RID: 14521
		private UnknownFieldSet _unknownFields;

		// Token: 0x040038BA RID: 14522
		public const int BaseValueFieldNumber = 6;

		// Token: 0x040038BB RID: 14523
		private uint baseValue_;

		// Token: 0x040038BC RID: 14524
		public const int UniqueIdFieldNumber = 10;

		// Token: 0x040038BD RID: 14525
		private uint uniqueId_;

		// Token: 0x040038BE RID: 14526
		public const int SkillBriefListFieldNumber = 7;

		// Token: 0x040038BF RID: 14527
		private static readonly FieldCodec<PlaySkillBrief> _repeated_skillBriefList_codec = FieldCodec.ForMessage<PlaySkillBrief>(58U, PlaySkillBrief.Parser);

		// Token: 0x040038C0 RID: 14528
		private readonly RepeatedField<PlaySkillBrief> skillBriefList_ = new RepeatedField<PlaySkillBrief>();
	}
}
